package com.migo.service.impl;

import com.migo.dao.ShSparePartInfoDetailDao;
import com.migo.entity.ShSparePartInfoDetailEntity;
import com.migo.service.ShSparePartInfoDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("shSparePartInfoDetailService")
public class ShSparePartInfoDetailServiceImpl implements ShSparePartInfoDetailService {
	@Autowired
	private ShSparePartInfoDetailDao shSparePartInfoDetailDao;
	
	@Override
	public ShSparePartInfoDetailEntity queryObject(Integer id){
		return shSparePartInfoDetailDao.queryObject(id);
	}
	
	@Override
	public List<ShSparePartInfoDetailEntity> queryList(Map<String, Object> map){
		return shSparePartInfoDetailDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return shSparePartInfoDetailDao.queryTotal(map);
	}
	
	@Override
	public void save(ShSparePartInfoDetailEntity shSparePartInfoDetail){
		shSparePartInfoDetailDao.save(shSparePartInfoDetail);
	}
	
	@Override
	public void update(ShSparePartInfoDetailEntity shSparePartInfoDetail){
		shSparePartInfoDetailDao.update(shSparePartInfoDetail);
	}
	
	@Override
	public void delete(Integer id){
		shSparePartInfoDetailDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		shSparePartInfoDetailDao.deleteBatch(ids);
	}
	
}
